#include "cppTutorNestedClass.h"

#include <iostream>

using namespace std;

typedef CcppTutorEnclosingClass :: CcppTutorNestedClass EncloseNest;

CcppTutorEnclosingClass :: CcppTutorEnclosingClass () : m_nECPriValue(0), m_nECProValue (), m_nECPubValue (0)
{
}

CcppTutorEnclosingClass:: ~CcppTutorEnclosingClass ()
{
}

void CcppTutorEnclosingClass :: m_ECDisplay ()
{
    cout << "ENTER : CcppTutorEnclosingClass :: m_ECDisplay ()" << endl;
    cout << "CcppTutorEnclosingClass :: m_nECPriValue : " << m_nECPriValue << endl;
    cout << "CcppTutorEnclosingClass :: m_nECProValue : " << m_nECProValue << endl;
    cout << "CcppTutorEnclosingClass :: m_nECPubValue : " << m_nECPubValue << endl;
    cout << "EXIT  : CcppTutorEnclosingClass :: m_ECDisplay ()" << endl;
}

///////////////

int CcppTutorEnclosingClass ::CcppTutorNestedClass :: m_nsNCPubValue = 10;

CcppTutorEnclosingClass ::CcppTutorNestedClass :: CcppTutorNestedClass () : m_nNCPriValue(10), m_nNCProValue (10), m_nNCPubValue (10)
{
}

CcppTutorEnclosingClass ::CcppTutorNestedClass :: ~CcppTutorNestedClass ()
{
}

void CcppTutorEnclosingClass :: CcppTutorNestedClass :: m_NCDisplay ()
{
    cout << "ENTER : CcppTutorEnclosingClass :: CcppTutorNestedClass :: m_NCDisplay ()" << endl;
    cout << "CcppTutorEnclosingClass :: CcppTutorNestedClass :: m_nECPriValue : " << m_nNCPriValue << endl;
    cout << "CcppTutorEnclosingClass :: CcppTutorNestedClass :: m_nECProValue : " << m_nNCProValue << endl;
    cout << "CcppTutorEnclosingClass :: CcppTutorNestedClass :: m_nECPubValue : " << m_nNCPubValue << endl;
    cout << "EXIT  : CcppTutorEnclosingClass :: CcppTutorNestedClass :: m_NCDisplay ()" << endl;
}

void EncloseNest :: m_NCGetECData ()
{
	//cout << "CcppTutorEnclosingClass :: m_nECPriValue : " << m_nECPriValue << endl;
 //   cout << "CcppTutorEnclosingClass :: m_nECProValue : " << m_nECProValue << endl;
 //   cout << "CcppTutorEnclosingClass :: m_nECPubValue : " << m_nECPubValue << endl;
}